The Resource Management Tools (KRT) subsystem provides a comprehensive suite of interactive tools for managing and curating Kazu resources. Its primary purpose is to facilitate resource editing, resolve conflicts, and manage ontology updates. The main flow involves loading ontology data through various parsers, processing and resolving any discrepancies or conflicts in the data, and then allowing users to interactively edit and save these curated resources. The system ensures data consistency and provides mechanisms for reporting on the state of the ontology resources.
Components
KRT Resource Manager
This component is responsible for managing ontology resources within the Kazu Resource Tool (KRT). It handles loading, saving, and synchronizing resources, as well as managing caches to ensure efficient access to ontology data.
KRT UI Components
This component provides the user interface elements and logic for interacting with ontology resources within the Kazu Resource Tool (KRT). It includes functionalities for editing resources, selecting parsers, and displaying various forms for user input.
KRT Ontology Update Editor
This component facilitates the process of updating ontologies within the Kazu Resource Tool (KRT). It manages the download of new ontology versions, generates upgrade reports, and allows for modification of parser configurations.
KRT Resource Discrepancy Editor
This component is dedicated to identifying and resolving discrepancies within ontology resources in the Kazu Resource Tool (KRT). It provides functionalities for displaying discrepancies, attempting autofixes, and submitting resolutions.
KRT String Editor
This component provides tools within the Kazu Resource Tool (KRT) for managing and resolving conflicts related to ontology strings. It allows for batch and individual conflict resolution, as well as searching and editing synonyms.
KRT Utilities
This component provides general utility functions used across the Kazu Resource Tool (KRT), including loading configurations, creating new resources, and converting resources to dataframes.
Ontology Preprocessing Core
This component is responsible for the core logic of ontology parsing, processing, and conflict analysis. It handles loading and dumping ontology string resources, verifying resource integrity, and processing global and resource-specific actions related to ontology data. It also manages the creation of various reports related to ontology conflicts and merges.
Ontology Parser
This component provides the base functionality for parsing and managing ontologies. It orchestrates the process of populating metadata databases, resolving string resources, generating default resources, and creating various conflict and merge reports. It also handles the upgrade of ontology versions.
Ontology Data Models
This component defines the fundamental data structures used throughout the KAZU system for representing ontology information, including synonyms, equivalent ID sets, and linking candidates. These models ensure data consistency and facilitate interactions between different parts of the system.
Referenced Source Code
Ontology Parsers
This component encompasses various specific implementations for parsing different ontology formats into a standardized dataframe representation. Each parser handles the unique structure and content of its respective ontology source.
Referenced Source Code
Utility Functions
This component provides a collection of general utility functions used across the KAZU project. These include string normalization, path manipulation, and grouping functionalities, which support various data processing and management tasks.